package cn.itsource.org.service;

import cn.itsource.basic.util.PageList;
import cn.itsource.org.domain.Department;
import cn.itsource.org.query.DepartmentQuery;

import java.util.List;

public interface IDepartmentService {
    //加载所有
    List<Department> findAll();
    //加载单个对象
    Department findById(Long id);
    //保存一个对象
    void add(Department department);
    //移出一个对象
    void delById(Long id);
    //更新一个对象
    void update(Department department);
    //分页查询,PageList<Department> 封装分页结果集(总条数,list)
    PageList<Department> queryPage(DepartmentQuery departmentQuery);

    void parchDel(List<Long> ids);

    List<Department> findDeptTree();
}
